package com.zygh.policeasset.controller;

import com.zygh.policeasset.component.CommonResult;
import com.zygh.policeasset.service.QrCodePublicAddressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.util.StringUtils;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping({"/qrCodePublicAddres"})
@Api(tags = {"二维码调用地址管理"})
@RestController
/* loaded from: police-asset-2.0-0.0.1-SNAPSHOT.jar:BOOT-INF/classes/com/zygh/policeasset/controller/QrCodePublicAddressController.class */
public class QrCodePublicAddressController {
    @Autowired
    QrCodePublicAddressService qrCodePublicAddressService;

    @RequestMapping(value = {"/queryPublicAddress"}, method = {RequestMethod.GET})
    @ApiOperation("二维码调用地址查询")
    public Object findAll() {
        String str = this.qrCodePublicAddressService.queryPublicAddress();
        if (!StringUtils.isEmpty(str)) {
            return new CommonResult().success(str);
        }
        return new CommonResult().validateFailed("查询失败");
    }
}